Version

SumProduct(Vector[]) Method

Returns the sum of the products of the corresponding elements of each Vector in x.
Syntax
'Declaration
 
Public Overloads Shared Function SumProduct( _
   ByVal ParamArray x() As Vector _
) As Double
public static double SumProduct( 
   params Vector[] x
)

Parameters

x
An array of Vectors with the same dimensions.

Return Value

A double y, where y = (x[0][0]*...*x[M][0]) + ... + (x[0][N]*...*x[M][N]).
Exceptions
ExceptionDescription
System.ArgumentException Occurs if the dimensions of the Vectors in x do not have the same dimensions.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also